
selenium.testCases["Testing something in Google Code"] = function(selenium) {


	
	selenium.describe("Opening up Selenate Home Page");
    selenium.open("/p/selenate");
    selenium.assertTitle("selenate - Project Hosting on Google Code");

    selenium.describe("Going to Wiki");
    selenium.click("link=Wiki");
    selenium.waitForPageToLoad("10000");

    selenium.assertTitle("DocumentIndex - selenate - Introduction to Selenate - Project Hosting on Google Code");


}


selenium.testCases["Google code:  Search for Spectacular"] = function(sel) {

    sel.describe("Opening up google code.");
    sel.open("/");
    sel.assertTitle("Google Code");
    
    sel.describe("Search for Spectacular project.");

    sel.type("gsearchInput", "spectacular");
    sel.sleep("5000");
    sel.click("gsearchButton");
    sel.waitForPageToLoad("5000");
    
    sel.describe("Is Spectacular in the search results?");
    sel.assertText("xpath=//a[@class='gs-title']/@href", "http://code.google.com/p/spectacular/");

    sel.describe("Going to spectacular project");
    sel.clickAndWait("xpath=//a[@href='http://code.google.com/p/spectacular/']");
    sel.assertTitle("spectacular - Project Hosting on Google Code");


}